package cn.hellochaos.generator.entity.dto;

/**
 *
 * @author fmy
 */
public class ResultCode {
    // -------------------成功状态码-------------------
    public static final String SUCCESS = "200";
    public static final String MSG_SUCCESS = "响应成功";
    // -------------------没有资源状态码-------------------
    public static final String NO_CONTENT = "204";
    public static final String MSG_NO_CONTENT = "响应成功，返回信息为空";
    //-------------------客户端失败状态码-------------------
    public static final String RESOURCE_NOT_FOUND = "404";
    public static final String MSG_RESOURCE_NOT_FOUND = "找不到该资源";

    // -------------------失败状态码----------------------
    // 参数错误
    public static final String PARAMS_IS_NULL = "10001";// 参数为空
    public static final String PARAMS_NOT_COMPLETE = "10002"; // 参数不全
    public static final String PARAMS_TYPE_ERROR = "10003"; // 参数类型错误
    public static final String PARAMS_IS_INVALID = "10004"; // 参数无效
    public static final String PARAMS_VALUE_ERROR = "10005";//参数值错误


    // -------------------失败对应消息----------------------

    public static final String MSG_PARAMS_IS_NULL = "参数为空";
    public static final String MSG_PARAMS_NOT_COMPLETE = "参数不全";
    public static final String MSG_PARAMS_TYPE_ERROR = "参数类型错误";
    public static final String MSG_PARAMS_IS_INVALID = "参数无效";
    public static final String MSG_PARAMS_VALUE_ERROR = "参数值不是约定的，请检查接口文档";

    // 用户登录状态码
    // public static final String USER_NOT_EXIST = "20001; // 用户不存在(不需要，提高安全性，直接"20003)
    public static final String USER_NOT_LOGGED_IN = "20002"; // 用户未登陆
    public static final String USER_ACCOUNT_ERROR = "20003"; // 用户名或密码错误
    public static final String USER_ACCOUNT_FORBIDDEN = "20004"; // 用户账户已被禁用
    public static final String USER_HAS_EXIST = "20005";// 用户已存在(用户登录用)

    // -------------------用户登录状态码对应消息----------------------
    // public static final String MSG_USER_NOT_EXIST = "20001; // 用户不存在(不需要，提高安全性，直接"20003)
    public static final String MSG_USER_NOT_LOGGED_IN = "用户未登陆"; // 用户未登陆
    public static final String MSG_USER_ACCOUNT_ERROR = "用户名或密码错误"; //
    public static final String MSG_USER_ACCOUNT_FORBIDDEN = "用户账户已被禁用"; //
    public static final String MSG_USER_HAS_EXIST = "用户已存在";//

    // 业务错误
    public static final String BUSINESS_ERROR = "30001";// 系统业务出现问题

    // 系统错误
    public static final String SYSTEM_INNER_ERROR = "40001"; // 系统内部错误

    // 数据错误
    public static final String DATA_NOT_FOUND = "50001"; // 数据未找到
    public static final String DATA_IS_WRONG = "50002";// 数据有误
    public static final String DATA_ALREADY_EXISTED = "50003";// 数据已存在

    // 接口错误
    public static final String INTERFACE_INNER_INVOKE_ERROR = "60001"; // 系统内部接口调用异常
    public static final String INTERFACE_OUTER_INVOKE_ERROR = "60002";// 系统外部接口调用异常
    public static final String INTERFACE_FORBIDDEN = "60003";// 接口禁止访问
    public static final String INTERFACE_ADDRESS_INVALID = "60004";// 接口地址无效
    public static final String INTERFACE_REQUEST_TIMEOUT = "60005";// 接口请求超时
    public static final String INTERFACE_EXCEED_LOAD = "60006";// 接口负载过高

    // 权限错误
    public static final String PERMISSION_NO_ACCESS = "70001";// 没有访问权限



}
